package com.innjia.sys.service.impl;

        import com.innjia.base.utils.Utils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.innjia.sys.dao.ContractOperationLogDao;
import com.innjia.sys.entity.ContractOperationLogEntity;
import com.innjia.sys.service.ContractOperationLogService;



@Service("contractOperationLogService")
public class ContractOperationLogServiceImpl implements ContractOperationLogService {
	@Autowired
	private ContractOperationLogDao contractOperationLogDao;
	
	@Override
	public ContractOperationLogEntity queryObject(String id){
		return contractOperationLogDao.queryObject(id);
	}
	
	@Override
	public List<ContractOperationLogEntity> queryList(Map<String, Object> map){
		return contractOperationLogDao.queryList(map);
	}

    @Override
    public List<ContractOperationLogEntity> queryListByBean(ContractOperationLogEntity entity) {
        return contractOperationLogDao.queryListByBean(entity);
    }
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return contractOperationLogDao.queryTotal(map);
	}
	
	@Override
	public int save(ContractOperationLogEntity contractOperationLog){
		contractOperationLog.setId(Utils.uuid());
		return contractOperationLogDao.save(contractOperationLog);
	}
	
	@Override
	public int update(ContractOperationLogEntity contractOperationLog){
        return contractOperationLogDao.update(contractOperationLog);
	}
	
	@Override
	public int delete(String id){
        return contractOperationLogDao.delete(id);
	}
	
	@Override
	public int deleteBatch(String[] ids){
        return contractOperationLogDao.deleteBatch(ids);
	}
	
}
